package il.ac.technion.cs236700.address_book;

import il.ac.technion.cs236700.utils.Misc;

import java.util.Map;


/**
 * Sample inputs for the {@link AddressBook_Test} class.
 * class {@link FakedAddressBook} uses the constants defined here to provide
 * a (very limited and partial) implementation of {@link AddressBook}
 */
public class Samples {
   public static final String CSV1 =
      "First Name,Last Name,Home Phone,Email\n" +
      "Barooch,Dego,,b@d.com\n" +
      "Shimon,Gershon,03-510011,s@g.com\n" +
      "Barooch,Dego,04-931100,b@d.com\n";

   public static final String CSV11 =
	      "First Name,Last Name,Home Phone,Email,Title,Fax\n" +
	      "Barooch,Dego,,b@d.com,,\n" +
	      "Shimon,Gershon,03-510011,s@g.com,,\n" +
	      "Barooch,Dego,04-931100,b@d.com,,\n" +
	      "Shimon,Gershon,,s@g.com,Sir,03-123456\n" +
	      "Barooch,Dego,,,Mr.,04-6785543\n";

   public static final String CSV111 =
	      "First Name,Last Name,Home Phone,Email,Title,Fax\n" +
	      "Barooch,Dego,04-931100,b@d.com,Mr.,04-6785543\n" +
	      "Shimon,Gershon,03-510011,s@g.com,Sir,03-123456\n";
   
   public static final String CSV2 = 
      "First Name,Last Name,Home Phone,Email\n" +
      "Barooch,Dego,04-931100,b@d.com\n" +
      "Shimon,Gershon,03-510011,s@g.com\n";

   public static final String CSV3 = 
      "Email,First Name,Home Phone\n" +
      "b@d.com,Barooch,04-931100\n" +
      "s@g.com,Shimon,03-510011\n";
   
   public static final String[] FIELDS_1 = {
      "First Name","Last Name","Home Phone","Email"      
   };

   public static final String[] FIELDS_11 = {
	      "First Name","Last Name","Home Phone","Email","Title","Fax"      
	   };

   public static final String[] FIELDS_2 = {
      "Email", "First Name", "Home Phone"      
   };

   public static final String CSV4 =       
      "Last Name,Email\n" +
      "Noyman,d@n.com\n" +
      "Noymann,d@n.com\n" +
      "Jimi,j@t.com\n";

   public static final String CSV5 =       
      "Last Name,First Name,Email\n" +
      "Noiman,,d@n.com\n" +
      "Noyman,,d@n.com\n";

   public static final String[] FIELDS_3 = new String[] { 
      "Last Name","First Name","Email" }; 


   public static final String CSV6 =       
      "Last Name,First Name,Email\n" +
      "Noiman,,d@n.com\n" +
      "Noyman,,d@n.com\n";
   
   
   public static final Map<String,String> MAP1 = Misc.map("First Name", "Wall-E")
      .map("Home page", "http://www.imdb.com/title/tt0910970").map;

   public static final String[] FIELDS_4 = {"First Name", "Home page" };

   public static final String CSV7 = 
      "First Name,Home page\n" +
      "Wall-E,http://www.imdb.com/title/tt0910970\n";

   public static final String[] FIELDS_5 = 
      {
          "First Name", "Last Name", "Home Address", "Work Address"
      };

   public static final String CSV8 = 
      "First Name,Last Name,Home Address,Work Address\n" +
      "Rick,Deckard,,LAPD LA\n";
   
   public static final Person DECKARD = new Person("Rick", "Deckard", "");
   public static final Address LAPD = new Address("", "LAPD", "LA", "", "");
   
}
